//
//  DDDetailsCommentView.h
//  Dingdong
//
//  Created by 程强 on 16/12/5.
//  Copyright © 2016年 程强. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^LoadMoreBlock)();

typedef NS_ENUM(NSInteger ,DingDongCommentType) {
    DingDongCommentTypeAll = 0,
    DingDongCommentTypePositive,
    DingDongCommentTypeNeutral,
    DingDongCommentTypeNegative,
};

@class DDDetailsCommentView;

@protocol DDDetailsCommentViewDelegate <NSObject>
- (void)commentView:(DDDetailsCommentView *)view refreshCommentWithType:(DingDongCommentType)type;
@end

@interface DDDetailsCommentView : UIView
@property (assign, nonatomic) id <DDDetailsCommentViewDelegate> delegate;
@property (strong, nonatomic) NSArray *commentAry;
@property (assign, nonatomic) BOOL loadMore;/**<是否有加载更多*/
- (void)footerWithRefreshingBlock:(void(^)())block;
- (void)endRefreshing;
@end
